package com.mbc.common.entities;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;

@SuppressWarnings("serial")
@Entity
@NamedQueries({
	@NamedQuery(name="LevelApplicationItem.findByRoleId", query="SELECT l FROM LevelApplicationItem l WHERE l.roleId = :roleId"),
	@NamedQuery(name="LevelApplicationItem.deleteByRoleId", query="DELETE FROM LevelApplicationItem l WHERE l.roleId = :roleId")
})
public class LevelApplicationItem implements Serializable {
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	private long autokey;
	private long roleId;
	private long appitemId;
	private String accessCodes;

	public LevelApplicationItem(){
	}

	public long getAutokey(){
		return autokey;
	}

	public void setAutokey(long autoKey){
		this.autokey = autoKey;
	}

	public long getRoleId(){
		return roleId;
	}

	public void setRoleId(long roleId){
		this.roleId = roleId;
	}

	public long getAppitemId(){
		return appitemId;
	}

	public void setAppitemId(long appitemId){
		this.appitemId = appitemId;
	}

	public String getAccessCodes() {
		return accessCodes;
	}

	public void setAccessCodes(String accessCodes) {
		this.accessCodes = accessCodes;
	}


}
